package com.yuexun.beilunpatient.ui.question.adapter;

import android.widget.AbsListView;

import com.yuexun.beilunpatient.R;
import com.yuexun.beilunpatient.ui.question.bean.QuestionReplyBean;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by chenss on 2018/8/23.
 */
public class QuestionReplyListAdapter extends KJAdapter<QuestionReplyBean> {

    public QuestionReplyListAdapter(AbsListView view, Collection<QuestionReplyBean> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder helper, QuestionReplyBean item, boolean isScrolling, int position) {
        super.convert(helper, item, isScrolling, position);
        helper.setText(R.id.answere_time, item.getReplyTime());
        helper.setText(R.id.answere_content, item.getReplyContent());
        helper.setText(R.id.answere_hos, "答复单位：" + item.getHospName());
        helper.setText(R.id.answere_name, "答复人：" + item.getDocName());
        helper.setText(R.id.use_time, "答复用时：" + item.getReplyUseTime());
    }
}
